package com.teacher.mapper;

import com.teacher.pojo.entity.RoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teacher.pojo.vo.roleUser.RoleUserGetVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author zfm
 * @since 2022-08-12
 */
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    /**
     * 根据角色id查询所有用户
     *
     * @param id
     * @return
     */
    List<RoleUserGetVo> getRoleUserGetVo(@Param("id") Long id);
}
